Optimal. Leaf size=223 \[ -\frac {2 (A (2 n+7)+C (2 n+5)) \sin (c+d x) \cos ^{\frac {5}{2}}(c+d x) (b \cos (c+d x))^n \, _2F_1\left (\frac {1}{2},\frac {1}{4} (2 n+5);\frac {1}{4} (2 n+9);\cos ^2(c+d x)\right )}{d (2 n+5) (2 n+7) \sqrt {\sin ^2(c+d x)}}-\frac {2 B \sin (c+d x) \cos ^{\frac {7}{2}}(c+d x) (b \cos (c+d x))^n \, _2F_1\left (\frac {1}{2},\frac {1}{4} (2 n+7);\frac {1}{4} (2 n+11);\cos ^2(c+d x)\right )}{d (2 n+7) \sqrt {\sin ^2(c+d x)}}+\frac {2 C \sin (c+d x) \cos ^{\frac {5}{2}}(c+d x) (b \cos (c+d x))^n}{d (2 n+7)} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.24, antiderivative size = 213, normalized size of antiderivative = 0.96, number of steps used = 5, number of rules used = 4, integrand size = 41, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.098, Rules used = {20, 3023, 2748, 2643} \[ -\frac {2 \left (\frac {A}{2 n+5}+\frac {C}{2 n+7}\right ) \sin (c+d x) \cos ^{\frac {5}{2}}(c+d x) (b \cos (c+d x))^n \, _2F_1\left (\frac {1}{2},\frac {1}{4} (2 n+5);\frac {1}{4} (2 n+9);\cos ^2(c+d x)\right )}{d \sqrt {\sin ^2(c+d x)}}-\frac {2 B \sin (c+d x) \cos ^{\frac {7}{2}}(c+d x) (b \cos (c+d x))^n \, _2F_1\left (\frac {1}{2},\frac {1}{4} (2 n+7);\frac {1}{4} (2 n+11);\cos ^2(c+d x)\right )}{d (2 n+7) \sqrt {\sin ^2(c+d x)}}+\frac {2 C \sin (c+d x) \cos ^{\frac {5}{2}}(c+d x) (b \cos (c+d x))^n}{d (2 n+7)} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 20
Rule 2643
Rule 2748
Rule 3023
Rubi steps
\begin {align*} \int \cos ^{\frac {3}{2}}(c+d x) (b \cos (c+d x))^n \left (A+B \cos (c+d x)+C \cos ^2(c+d x)\right ) \, dx &=\left (\cos ^{-n}(c+d x) (b \cos (c+d x))^n\right ) \int \cos ^{\frac {3}{2}+n}(c+d x) \left (A+B \cos (c+d x)+C \cos ^2(c+d x)\right ) \, dx\\ &=\frac {2 C \cos ^{\frac {5}{2}}(c+d x) (b \cos (c+d x))^n \sin (c+d x)}{d (7+2 n)}+\frac {\left (2 \cos ^{-n}(c+d x) (b \cos (c+d x))^n\right ) \int \cos ^{\frac {3}{2}+n}(c+d x) \left (\frac {1}{2} \left (2 C \left (\frac {5}{2}+n\right )+2 A \left (\frac {7}{2}+n\right )\right )+\frac {1}{2} B (7+2 n) \cos (c+d x)\right ) \, dx}{7+2 n}\\ &=\frac {2 C \cos ^{\frac {5}{2}}(c+d x) (b \cos (c+d x))^n \sin (c+d x)}{d (7+2 n)}+\left (B \cos ^{-n}(c+d x) (b \cos (c+d x))^n\right ) \int \cos ^{\frac {5}{2}+n}(c+d x) \, dx+\frac {\left ((C (5+2 n)+A (7+2 n)) \cos ^{-n}(c+d x) (b \cos (c+d x))^n\right ) \int \cos ^{\frac {3}{2}+n}(c+d x) \, dx}{7+2 n}\\ &=\frac {2 C \cos ^{\frac {5}{2}}(c+d x) (b \cos (c+d x))^n \sin (c+d x)}{d (7+2 n)}-\frac {2 \left (\frac {A}{5+2 n}+\frac {C}{7+2 n}\right ) \cos ^{\frac {5}{2}}(c+d x) (b \cos (c+d x))^n \, _2F_1\left (\frac {1}{2},\frac {1}{4} (5+2 n);\frac {1}{4} (9+2 n);\cos ^2(c+d x)\right ) \sin (c+d x)}{d \sqrt {\sin ^2(c+d x)}}-\frac {2 B \cos ^{\frac {7}{2}}(c+d x) (b \cos (c+d x))^n \, _2F_1\left (\frac {1}{2},\frac {1}{4} (7+2 n);\frac {1}{4} (11+2 n);\cos ^2(c+d x)\right ) \sin (c+d x)}{d (7+2 n) \sqrt {\sin ^2(c+d x)}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.53, size = 164, normalized size = 0.74 \[ -\frac {2 \sin (c+d x) \cos ^{\frac {5}{2}}(c+d x) (b \cos (c+d x))^n \left ((A (2 n+7)+C (2 n+5)) \, _2F_1\left (\frac {1}{2},\frac {1}{4} (2 n+5);\frac {1}{4} (2 n+9);\cos ^2(c+d x)\right )+(2 n+5) \left (B \cos (c+d x) \, _2F_1\left (\frac {1}{2},\frac {1}{4} (2 n+7);\frac {1}{4} (2 n+11);\cos ^2(c+d x)\right )-C \sqrt {\sin ^2(c+d x)}\right )\right )}{d (2 n+5) (2 n+7) \sqrt {\sin ^2(c+d x)}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [F] time = 1.45, size = 0, normalized size = 0.00 \[ {\rm integral}\left ({\left (C \cos \left (d x + c\right )^{3} + B \cos \left (d x + c\right )^{2} + A \cos \left (d x + c\right )\right )} \left (b \cos \left (d x + c\right )\right )^{n} \sqrt {\cos \left (d x + c\right )}, x\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int {\left (C \cos \left (d x + c\right )^{2} + B \cos \left (d x + c\right ) + A\right )} \left (b \cos \left (d x + c\right )\right )^{n} \cos \left (d x + c\right )^{\frac {3}{2}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [F] time = 0.68, size = 0, normalized size = 0.00 \[ \int \left (\cos ^{\frac {3}{2}}\left (d x +c \right )\right ) \left (b \cos \left (d x +c \right )\right )^{n} \left (A +B \cos \left (d x +c \right )+C \left (\cos ^{2}\left (d x +c \right )\right )\right )\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int {\left (C \cos \left (d x + c\right )^{2} + B \cos \left (d x + c\right ) + A\right )} \left (b \cos \left (d x + c\right )\right )^{n} \cos \left (d x + c\right )^{\frac {3}{2}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.00 \[ \int {\cos \left (c+d\,x\right )}^{3/2}\,{\left (b\,\cos \left (c+d\,x\right )\right )}^n\,\left (C\,{\cos \left (c+d\,x\right )}^2+B\,\cos \left (c+d\,x\right )+A\right ) \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F(-1)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________